// Learn TypeScript:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/typescript.html
//  - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
//  - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
//  - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html

const {ccclass, property} = cc._decorator;
import cMountMgr from "../SuperMgr/cMountMgr";
@ccclass
export default class cJYMTGameTabSettingMount extends cMountMgr {
    @property({type:cc.Slider,tooltip:"音效"})
    effect:cc.Slider = null;
    @property({type:cc.Slider,tooltip:"音乐"})
    music:cc.Slider = null;
    @property({type:cc.Node,tooltip:"音效进度条"})
    effectbor:cc.Node = null;
    @property({type:cc.Node,tooltip:"音乐进度条"})
    musicbor:cc.Node = null;

    //音效
    onEffectChange(){
        this.effectbor.scaleX = this.effect.progress;
    }

    //音量
    onMusicChange(){
        this.musicbor.scaleX = this.music.progress;
    }

    //关闭
    onClose(){
        this.closeCript(null);
    }
}
